package cn.hiapi.admin.vo;

import cn.hiapi.basic.entity.BasicEntity;
import cn.hiapi.basic.serializer.LongToStringSerializer;
import cn.hiapi.shopkeeper.enums.ActivityType;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2022/12/30 15:15
 */
@Setter
@Getter
public class ActivityVo extends BasicEntity {
    @JSONField(serializeUsing = LongToStringSerializer.class)
    private Long id;

    private String category;
    private long cid;

    @ApiModelProperty("活动id")
    private ActivityType type;
    @ApiModelProperty("活动封面")
    private String thumb;

    @ApiModelProperty("活动标题")
    private String title;
    @ApiModelProperty("活动介绍")
    private String body;
    @ApiModelProperty("店铺id")
    private long shopId;
    @ApiModelProperty("开始时间")
    private long startTime;
    @ApiModelProperty("结束时间")
    private long endTime;

    @ApiModelProperty("使用开始时间")
    private long useStart;
    @ApiModelProperty("使用结束时间")
    private long useEnd;


    @ApiModelProperty("原价")
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal price = BigDecimal.ZERO;

    @ApiModelProperty("创建时间")
    private long created = System.currentTimeMillis();

    @ApiModelProperty("活动详情信息")
    private Object expand;

    @ApiModelProperty("其他设置")
    private Object other;

    @ApiModelProperty("店铺资料")
    private Object shop;
    private int status;

}
